package whu.cn.whushare.ui.main.activity.bean;

import android.text.TextUtils;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import whu.cn.whushare.ui.main.activity.bean.Activity;

/**
 * Created by xiaoping on 2015/4/9.
 */
public class SearchActivity {
    @Expose
    @SerializedName("data")
    public Activity activity;

    @Expose
    @SerializedName("type")
    public String name;
    @Expose
    @SerializedName("url")
    public String url;

    public String getActivityId() {
        if (TextUtils.isEmpty(url))
            return "";
        else
            return url.split("=")[1];
    }
}
